New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

pull-json-doubleline

Package Overview
Dependencies
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

pull-json-doubleline

stream json stringify and parser into double newline delimited json. double newline delimiting means you can use indented json as the stream format, which is more human readable.

  • 2.0.0
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
6
decreased by-33.33%
Maintainers
1
Weekly downloads
 
Created
Source

pull-json-doubleline

stream json stringify and parser into double newline delimited json. double newline delimiting means you can use indented json as the stream format, which is more human readable.

example

var pullJson = require('pull-json-doubleline')

pull(
  source,
  pullJson.stringify(),
  pullJson.parse(),
  sink
)

api

pullJson = require('pull-json-doubleline')

pullJson.stringify() => through

stringify a stream of objects into double newline delimited json strings.

pullJson.parse() => through

transform a stream of double newline delimited json strings into objects.

pullJson(source) => decodedSource

decode a source stream of json buffers, return a source stream of objects.

pullJson(sink) => encodedSink

encode a sink stream for json buffers, return a sink stream for objects.

pullJson(objectDuplex) => serializedDuplex

encode/decode around a duplex stream of json buffers, return a stream that can be piped to a io steam.

License

MIT

FAQs

Package last updated on 11 Sep 2016

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc